<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>UniLearn | Swinwise solutions</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('Please fill in all required fields before submission\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
</script>
<style type="text/css">
<!--
.style1 {
	color: #FF0000;
	font-size: 16px;
}
-->
</style>
</head>

<body style="margin:0px">
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="images/head.jpg" width="770" height="92" /></td>
  </tr>
  <tr>
    <td><img src="images/menu.jpg" width="770" height="25" /></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/t2.jpg">
      <tr>
        <td><img src="images/t1.jpg" width="770" height="31" /></td>
      </tr>
      <tr>
        <td valign="top"><table width="90%" border="0" align="center" cellpadding="5" cellspacing="0">
          <tr>
            <td height="500" valign="top"><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
  <tr>
    <td width="150" rowspan="2" valign="top">
	<p><strong>For Students</strong></p>
	<p><a href="student_login.html">Student Login</a> </p>
	<p><a href="download.html">Download Assignment Sheet </a></p>
	<p><a href="Add_assignment.html">Add Assignment</a></p>
      <p><a href="check_results.html">Check Results</a><br />
	  	</p>
		<br /><br />
      <p><strong>For Staff  </strong></p>
      <p><a href="staff_login.html">Staff  Login</a> </p>
	  <p><a href="subject.html">Create Subject</a> </p>
	  <p><a href="assignment.html">Create Assignment</a> </p>
      <p><a href="post.html">Post Assignment Sheet</a> </p>
	  <p><a href="download.html">Download Assignment Sheet </a></p>
      <p><a href="mark.html">Mark Assignment </a></p>
      </td>
    <td valign="top"><h4>Create Assignment </h4></td>
  </tr>
  <tr>
    <td valign="top"><table width="90%" border="0" align="center" cellpadding="5" cellspacing="0">
      
      <tr>
        <td colspan="2"><form id="form1" name="form1" method="post" action="assignment_thank.html">
          <table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#CCCCCC">
            
            <tr>
              <td width="29%"><strong>Assignment ID</strong></td>
              <td width="3%">:</td>
              <td width="68%"><label>
                <input name="Assignment ID" type="text" id="Assignment ID" />
                <span class="style1">*</span></label></td>
            </tr>
            <tr>
              <td><strong>Assignment Name</strong></td>
              <td>:</td>
              <td><input name="Assignment Name" type="text" id="Assignment Name" />
                <span class="style1">*</span></td>
            </tr>
            <tr>
              <td><strong>Maximum Mark</strong></td>
              <td>:</td>
              <td><input name="Maximum Mark" type="text" id="Maximum Mark" size="10" />
                <span class="style1">*</span></td>
            </tr>
            <tr>
              <td><strong>Status</strong></td>
              <td>:</td>
              <td><label>
                <select name="select">
                  <option value="Open for submission" selected="selected">Open for submission</option>
                  <option value="Closed for submission">Closed for submission</option>
                  <option value="Open for marking">Open for marking</option>
                  <option value="Open for marking and submission">Open for marking and submission</option>
                </select>
              </label></td>
            </tr>
            <tr>
              <td><strong>Due Date</strong></td>
              <td>:</td>
              <td><label>
                <input name="textfield4" type="text" value="DD" size="5" />
                / 
                <input name="textfield5" type="text" value="MM" size="5" />
              / 
              <input name="textfield6" type="text" value="YYYY" size="10" />
              </label></td>
            </tr>
            
            
            
			<tr>
              <td colspan="3"><div align="center">Note : Required fields are marked with <span class="style1">*</span></div></td>
              </tr>
			<tr>
			  <td colspan="3">&nbsp;</td>
			  </tr>
            <tr>
              <td colspan="3"><div align="center">
                <label>
                <input name="Submit" type="submit" onclick="MM_validateForm('Assignment ID','','R','Assignment Name','','R','Maximum Mark','','RisNum');return document.MM_returnValue" value="Create Assignment" />
                </label>
              </div></td>
              </tr>
          </table>
                </form>
        </td>
        </tr>
    </table></td>
  </tr>
</table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><img src="images/t3.jpg" width="770" height="31" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><img src="images/foot.jpg" width="752" height="54" /></td>
  </tr>
</table>


</body>

</html>
